# 切片
players = ['charles',  'martina', 'michael', 'florence', 'eli']
print(players[0:3])
print(players[1:4])
# 自动从列表开始
print(players[:4])
# 终止于末尾
print(players[2:])
# 输出名单的最后三名队员
print(players[-3:])

# 遍历切片
print("Here is the first three players on my team:")
for player in players[:3]:
    print(player.title())
